<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/Public/foundation/foundation.min.css">
    <script src="/Public/foundation/foundation.min.js"></script>
    <script src="/Public/foundation/modernizr.js"></script>
    <script src="/Public/jquery.min.js"></script>
    <link rel="stylesheet" href="http://static.runoob.com/assets/foundation-icons/foundation-icons.css">
</head>
<body>
<nav class="top-bar" data-topbar>
    <ul class="title-area">
        <li class="name">
            <h1><a href="#">后台管理</a></h1>
        </li>
    </ul>
    <section class="top-bar-section">
        <ul class="right">
            <?php if($_SESSION['uname']== null): ?><li><a href="<?php echo U('login');?>">登录</a></li>
                <?php else: ?>
                <li><a href="">欢迎<?php echo (session('uname')); ?></a></li>
                <li><a href="<?php echo U('loginout');?>">退出</a></li><?php endif; ?>
        </ul>

    </section>
</nav>
<div>
    <div class="small-2 columns">
        <ul class="side-nav">
            <li><a href="<?php echo U('showUsers');?>">用户管理</a></li>
            <li><a href="#">Link 2</a></li>
            <li><a href="#">Link 3</a></li>
            <li><a href="#">Link 4</a></li>
        </ul>
    </div>
    <div class="small-10 columns">
        
<table style="margin-top:15px">
    <form action="<?php echo U('doEditUser');?>" method="post" >
        <input type="hidden" name="uid" value='<?php echo ($user["uid"]); ?>'>
        <tr >
            <td>用户名<?php echo ($user["uname"]); ?></td>
            <td>昵称 <input type="text" name="uni"   value="<?php echo ($user["uni"]); ?>"></td>
            <td>密码<input type="password" name="pwd"  placeholder="密码" ></td>
            <td>邮箱<input type="email" name="email" value="<?php echo ($user["email"]); ?>"></td>
            <td>手机<input type="text" name="tel" value="<?php echo ($user["tel"]); ?>"></td>
           <td><input class="button tiny" type="submit" name="sub" value="保存"></td>
        </tr>
    </form>
</table>

    </div>
</div>
</body>
</html>